package com.cqan.method.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.cqan.entity.pk.LongEntity;

@Entity
//表名与类名不相同时重新定义表名.
@Table(name = "TBL_PARAMS")
//默认的缓存策略.
@SuppressWarnings("serial")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Params extends LongEntity{

	private String paramName;
	
	private String paramValue;
	
	@Column(name="PARAM_NAME")
	public String getParamName() {
		return paramName;
	}

	@Column(name="PARAM_VALUE")
	public String getParamValue() {
		return paramValue;
	}

	public void setParamName(String paramName) {
		this.paramName = paramName;
	}

	public void setParamValue(String paramValue) {
		this.paramValue = paramValue;
	}

	
}
